package com.xt.bean;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Arrays;

/**
 * 角色表
 * Created by XT on 2018/5/3.
 */
@Document(collection = "tb_role")
public class Role extends BaseBean{

    private String name;//角色名
    /**
     * 关联关系
     */
    private String[] userIds;//多对多-用户
    private String[] moduleIds;//多对多-模块

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getUserIds() {
        return userIds;
    }

    public void setUserIds(String[] userIds) {
        this.userIds = userIds;
    }

    public String[] getModuleIds() {
        return moduleIds;
    }

    public void setModuleIds(String[] moduleIds) {
        this.moduleIds = moduleIds;
    }

    @Override
    public String toString() {
        return "Role{" +
                ", name='" + name + '\'' +
                ", userIds=" + Arrays.toString(userIds) +
                ", moduleIds=" + Arrays.toString(moduleIds) +
                '}';
    }
}
